import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:ls_work/net/response/service_order_ddetail_data.dart';
import 'package:ls_work/res/gaps.dart';
import 'package:ls_work/viewmodel/service_order/finish_service_order_view_model.dart';
import 'package:ls_work/widgets/title_value_widget.dart';

class FinishServiceOrderWidget extends BaseStatefulMvvmWidget {
  final ServiceOrderDdetailData detailData;

  FinishServiceOrderWidget(this.detailData);

  @override
  State<StatefulWidget> createState() => _FinishServiceOrderState();
}

class _FinishServiceOrderState extends BaseMvvmState<
    FinishServiceOrderViewModel, FinishServiceOrderWidget> {
  @override
  Widget buildLoadingContentView() {
    return viewModel.content();
  }

  @override
  Widget buildRootView(BuildContext context, Widget loadingContentWidget) {
    return loadingContentWidget;
  }

  @override
  FinishServiceOrderViewModel createViewModel() {
    return FinishServiceOrderViewModel(context,widget.detailData);
  }

  @override
  void onRetryClick() {
    // TODO: implement onRetryClick
  }
}
